﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Text;

namespace Herman.Templet.Core
{
    public class LogHelp
    {
        static readonly ILogger logger = new LoggerFactory().AddLog4Net().CreateLogger("logs");
        /// <summary>
        /// 写入日志
        /// </summary>
        /// <param name="log"></param>
        public static void LogInfo(string log)
        {
            logger.LogInformation(log);
        }

        /// <summary>
        /// 写入日志Error
        /// </summary>
        /// <param name="log"></param>
        public static void LogDebug(string log)
        {
            logger.LogDebug(log);
        }

        /// <summary>
        /// 写入日志Debug
        /// </summary>
        /// <param name="log"></param>
        public static void LogError(string log)
        {
            logger.LogError(log);
        }
    }
}
